package com.example.demo.response;

public class CommonResuletType {
    private String status;
    private  Object data;

    public  static  CommonResuletType craete(Object result){
        return  CommonResuletType.craete(result,"success");
    }
    public static CommonResuletType craete(Object result,String s){
        CommonResuletType commonResuletType=new CommonResuletType();
        commonResuletType.setData(result);
        commonResuletType.setStatus(s);
        return  commonResuletType;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
